package com.source.scalaakka.basic

import akka.actor.Actor

/**
  * Description: 
  * User: tan 
  * DateTime: 2018/1/19 19:04 
  */
object TeacherStudentTest {
  class TeacherActor extends Actor{
    override def receive: Receive = {
      case "1" =>{
        sender ! "1"
      }

      case "2"=>{
        sender ! "2"
      }
    }
  }

  class StudentActor extends Actor{
    override def receive: Receive = {
      case res:String=>{
        println(res)
      }

      case time:Long=>{

      }
    }
  }

  def test: Unit ={

  }

}
